import { service, service2 } from '@/utils/request'//160
//获取设备
export function reqGetDev(data) {
    return service({
        method: "post",
        url: "/Alerts/GetDev",
        data,
    });
}
// *****************参数维护
//获取
export function reqGetSystemSetting(data) {
    return service({
        method: "post",
        url: "Alerts/GetSystemSetting",
        data,
    });
}
//添加
export function reqInsertSystemSetting(data) {
    return service({
        method: "post",
        url: "/Alerts/InsertSystemSetting",
        data,
    });
}
//删除
export function reqDeleteSystemSetting(data) {
    return service({
        method: "post",
        url: "/Alerts/DeleteSystemSetting",
        data,
    });
}
//修改
export function reqUpdateSystemSetting(data) {
    return service({
        method: "post",
        url: "/Alerts/UpdateSystemSetting",
        data,
    });
}
// *****************项目维护
//获取
export function reqGetActionType(data) {
    return service({
        method: "post",
        url: "/Alerts/GetActionType",
        data,
    });
}
//添加
export function reqInsertActionType(data) {
    return service({
        method: "post",
        url: "/Alerts/InsertActionType",
        data,
    });
}
//删除
export function reqDeleteActionType(data) {
    return service({
        method: "post",
        url: "/Alerts/DeleteActionType",
        data,
    });
}
//修改
export function reqUdpateActionType(data) {
    return service({
        method: "post",
        url: "/Alerts/UdpateActionType",
        data,
    });
}
// *****************设备绑定
//获取
export function reqGetDevUser(data) {
    return service({
        method: "post",
        url: "/Alerts/GetDevUser",
        data,
    });
}
//添加
export function reqInsertDevUser(data) {
    return service({
        method: "post",
        url: "/Alerts/InsertDevUser",
        data,
    });
}
//删除
export function reqDeleteDevUser(data) {
    return service({
        method: "post",
        url: "/Alerts/DeleteDevUser",
        data,
    });
}
//修改
export function reqUpdateDevUser(data) {
    return service({
        method: "post",
        url: "/Alerts/UpdateDevUser",
        data,
    });
}
// *****************实时数据
//获取
export function reqGetResult(data) {
    return service({
        method: "post",
        url: "/Alerts/GetResult",
        data,
    });
}
//更新
export function reqActionResult(data) {
    return service({
        method: "post",
        url: "/Alerts/ActionResult",
        data,
    });
}
// *****************FACA填写
//填写
export function UpdateFACA(data) {
    return service({
        method: "post",
        url: "/Alerts/UpdateFACA",
        data,
    });
}
//填写完成更新状态
export function reqEnterReView(data) {
    return service({
        method: "post",
        url: "/Alerts/EnterReView",
        data,
    });
}
// *****************审批及邮件管理
//获取
export function reqGetMailInfo(data) {
    return service2({
        method: "post",
        url: "/FACAEmail2/GetMailInfo2",
        data
    });
}
//添加
export function reqAddDeviceMail(data) {
    return service2({
        method: "post",
        url: "/FACAEmail2/AddDeviceMail2",
        data
    });
}
//修改
export function reqEditDeviceMail(data) {
    return service2({
        method: "post",
        url: "/FACAEmail2/EditDeviceMail2",
        data
    });
}
//删除
export function reqDelDeviceMail(data) {
    return service2({
        method: "post",
        url: "/FACAEmail2/DelDeviceMail2",
        data
    });
}
//导入
export const requploadExcel = (data) => {
    return service2({ url: 'FACAEmail2/uploadExcel', data, method: 'post' })
}
// *****************FACA审批
//获取待审批数据
export function reqGetReViewMainIng(data) {
    return service({
        method: "post",
        url: "/Alerts/GetReViewMainIng",
        data
    });
}
//获历史审批数据
export function reqGetReViewMainEd(data) {
    return service({
        method: "post",
        url: "/Alerts/GetReViewMainEd",
        data
    });
}
//获审批详细数据
export function reqGetReViewSub(data) {
    return service({
        method: "post",
        url: "/Alerts/GetReViewSub",
        data
    });
}
//提交审批数据
export function reqInsertReViewSub(data) {
    return service({
        method: "post",
        url: "/Alerts/InsertReViewSub",
        data
    });
}
//发送邮件
export function reqSendEMail(data) {
    return service2({
        method: "post",
        url: "/SendEMail/SendEMail",
        data
    });
}
//获取OCAP_DRI_EMail表数据
export function reqOptsList(data) {
    return service2({
        method: "post",
        url: "/FACAEmail2/OptsList",
        data
    });
}




// *****************邮件维护
//获取OCAP_DRI_EMail表数据_
export function reqGetEmail(data) {
    return service2({
        method: "post",
        url: "/Email/GetEmail",
        data
    });
}

//添加OCAP_DRI_EMail表数据_
export function reqAddEmail(data) {
    return service2({
        method: "post",
        url: "/Email/AddEmail",
        data
    });
}
//修改OCAP_DRI_EMail表数据_
export function reqUpdateEmail(data) {
    return service2({
        method: "post",
        url: "/Email/UpdateEmail",
        data
    });
}
//删除OCAP_DRI_EMail表数据_
export function reqDeleteEmail(data) {
    return service2({
        method: "post",
        url: "/Email/DeleteEmail",
        data
    });
}



